//
//  MultiPageAppView.swift
//  TanTan_Kotlin
//
//  Created by EDY on 5/27/25.
//

import SwiftUI

struct MultiPageAppView: View {
    @StateObject private var data = ShareProducts()
    var body: some View {
        TabView {
            ProductListView()
                .tabItem {
                    Label("商品列表", systemImage: "list.dash")
                }
            CartView()
                .tabItem {
                    Label("购物车",systemImage: "cart")
                }
        }
        .environmentObject(data)
    }
}


#Preview {
    MultiPageAppView().environmentObject(ShareProducts())
}
